home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / sort.arc / sortmain.h < prev   
C/C++ Source or Header  |  1989-03-30  |  2KB  |  32 lines

  1. /******************************************************************************
  2.  *                                                                            *
  3.  *   sortmain.h     version 1.0 of 22 Januari 1989    (C) L.J.M. de Wit 1989  *
  4.  *                                                                            *
  5.  * This software may be used and distributed freely if not used commercially  *
  6.  * and the originator (me) is mentioned in the source (just leave this 9 line *
  7.  * header intact).                                                            *
  8.  *                                                                            *
  9.  ******************************************************************************
  10.  *
  11.  * sortmain.h: external definitions & symbols for sortmain
  12.  */
  13.  
  14. #define IGNBLANK   0x001                        /* Ignore leading blanks    */
  15. #define DICTORDER  0x002                        /* Dictionary order         */
  16. #define FOLDUPPER  0x004                        /* Fold ucase to lcase      */
  17. #define IGNONPRINT 0x008                        /* Ignore non-printing chars*/
  18. #define NUMERIC    0x010                        /* Interpret as numeric     */
  19. #define REVERSE    0x020                        /* Reverse result           */
  20.  
  21. #define CHECKONLY  0x040                        /* Don't sort; check only   */
  22. #define MERGEONLY  0x080                        /* Merge; input is sorted   */
  23. #define OUTFILE    0x100                        /* Output was specified     */
  24. #define UNIQUE     0x200                        /* Remove identical lines   */
  25. #define SEPARATOR  0x400                        /* Separator was specified  */
  26.  
  27. #define wspace(c) ((c) == ' ' || (c) == '\t' || (c) == '\n')
  28.  
  29. extern int options;                             /* Global sort flags        */
  30.  
  31. extern void error();                            /* Display error msg & exit */
  32.